package com.cw.jeeyt.service.bo.security;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.Data;

@Data
public class SecurityRoleVo implements Serializable {
    private static final long serialVersionUID = -5637196191970758433L;
    /**
     * 主键id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**
     * 机构ID
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId;
    /**
     * 角色类型
     */
    private String roleType;
    /**
     * 父id
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long parentId;
    /**
     * 上级角色名称
     */
    private String parentRoleName;
    /**
     * 角色名称
     */
    private String name;
    /**
     * 说明
     */
    private String comment;
    /**
     * 机构名称
     */
    private String orgName;

    private String roleUserIds;
    private String roleUserNames;
    /** 角色用户 */
    private List<SecurityUserBo> roleUsers;
    /** 角色权限 */
    private List<SecurityResourceBo> resources = new ArrayList<SecurityResourceBo>();
}
